<template>
    <div class="zycoin">
        <div class="liuhai"></div>
        <div class="md-header">
            <div>
                <i class="settings-icon" @click="goTo('/mine')">&#xe600;</i>
            </div>
            <div>至游币</div>
            <div></div>
        </div>
        <div class="userHead">
            <div class="top">
                <div class="userHeadImg">
                    <img src="../../../assets/head/head3.png" alt="">
                </div>
                <div class="userHeadName">
                    <p>没有重名的大笛子</p>
                    <div>
                        <i class="zy-icon">&#xe62b;</i>
                        <span>485</span>
                    </div>
                </div>
            </div>
            <div class="bottom">
                <div class="obtainZy">
                    <router-link to="/gainzycoin">获取至游币</router-link>
                </div>
                <div class="exRecording">
                    <router-link to="/changerecord">兑换记录</router-link>
                </div>
                <div class="zyMall">
                    <router-link to="/zymall">至游商城</router-link>
                </div>
            </div>
        </div>
        <router-view/>
    </div>
</template>

<script>
    export default {
        methods: {
            goTo(path) {
                this.$router.replace(path)
            },
        }
    }
</script>


<style>
    .zy-icon {
        font-family: iconfont;
        font-style: normal;
    }

    .userHead {
        width: 100%;
        height: 240px;
        background: #e8a41c;
        color: white;
        margin-bottom: 20px;
    }

    .userHead > .top {
        height: 160px;
        display: flex;
    }

    .userHeadImg {
        width: 160px;
        height: 160px;
        position: relative;
    }

    .userHeadImg > img {
        width: 120px;
        height: 120px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }

    .userHeadName {
        width: 50%;
        display: flex;
        line-height: 160px;
    }

    .userHeadName > p {
        margin-right: 20px;
        font-size: 28px;
    }

    .userHeadName > div, .userHeadName > div > span {
        margin-left: 10px;
    }

    .userHead > .bottom {
        height: 80px;
        display: flex;
        justify-content: space-between;
    }

    .userHead > .bottom > div {
        width: 33%;
        height: 100%;
        text-align: center;
        line-height: 80px;
        font-size: 28px;
    }
    /*    .......................................*/
</style>
